﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/6/20 星期四 20:50:43
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace Sector7.Framework.Core
{
    /// <summary>
    /// 登录控件基类
    /// </summary>
    public class LoginControlBase : UserControl
    {
        #region ============================================== Event
        /// <summary>
        /// 登录成功事件
        /// </summary>
        public event EventHandler LoginSuccess = null;

        /// <summary>
        /// 点击关闭事件
        /// </summary>
        public event EventHandler ClickClose = null;
        #endregion

        #region ============================================== Accessor
        #endregion

        #region ============================================== Public functions
        #endregion

        #region ============================================== Private Functions
        /// <summary>
        /// 触发登录成功事件
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnLoginSuccess(EventArgs e)
        {
            if (LoginSuccess != null)
            {
                LoginSuccess(this, e);
            }
        }

        /// <summary>
        /// 出发点击关闭事件
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnClickClose(EventArgs e)
        {
            if (ClickClose != null)
            {
                ClickClose(this, e);
            }
        }
        #endregion

        #region ============================================== Event Functions
        #endregion

        #region ============================================== Structure
        #endregion

        #region ============================================== Inner members
        #endregion
    }
}
